package com.group.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value="registration")
@TableName(value = "registration")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Registration {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="主键id")
    private Integer id;

    /**
     * 订单编号
     */
    @TableField(value = "`number`")
    @ApiModelProperty(value="订单编号")
    private Long number;

    /**
     * 应付金额
     */
    @TableField(value = "money")
    @ApiModelProperty(value="应付金额")
    private BigDecimal money;

    /**
     * 医生id
     */
    @TableField(value = "doctor_id")
    @ApiModelProperty(value="医生id")
    private Integer doctorId;

    /**
     * 挂号单号
     */
    @TableField(value = "registration_num")
    @ApiModelProperty(value="挂号单号")
    private String registrationNum;

    /**
     * 就诊时间
     */
    @TableField(value = "`time`")
    @ApiModelProperty(value="就诊时间")
    private Date time;

    /**
     * 软删除键
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="软删除键")
    private Boolean isDelete;
}